package com.alkaid.commons.param.user;

import lombok.Data;

import javax.validation.constraints.Pattern;

/**
 * @author Kylin
 */
@Data
public class CheckNicknameParam {
    @Pattern(regexp = "[^\\s\\\\~`!@#$%^&*(){}|/=+?<>'\";:]{2,16}",
            message = "昵称长度必须为2-16个字符，不可包含-和_以外的特殊字符")
    private String nickname;
}
